import { Outlet } from "react-router-dom";
import useLoadUserData from "../../hooks/useLoadUserData";
import useNavPage from "../../hooks/useNavPage";
import { Spin } from "antd";
export default function QuestionLayout() {
  const { waitingUserData } = useLoadUserData();
  useNavPage(waitingUserData);
  return (
    <>
      <div>{waitingUserData ? <Spin /> : <Outlet />}</div>
    </>
  );
}
